package top.zhangjianyong.tools.parm.stock;

import lombok.Data;
import top.zhangjianyong.tools.validation.NumberRange;
import top.zhangjianyong.tools.validation.NumberValue;

import javax.validation.constraints.NotNull;

/**
 * @author zhangjianyong
 * @since 2025/4/1 下午4:55
 */
@Data
public class StockUserGoodsBorrowParam {
    @NotNull(message = "物品ID不能为空")
    private Long stockGoods;
    @NumberValue(allowedValues = {0, 1}, message = "类型值错误")
    private Integer type; // 1-借出 0-归还
    @NumberRange(min = 1, message = "数量不能小于1")
    private Integer num;
}
